package y24.m3.java;

import java.util.Scanner;
/**
 * @author 骆天齐
 * @version 1.0
 * 百分制转五分制
 */
public class Test1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int score = scanner.nextInt();
        switch (score / 10){
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
                System.out.println("不及格");
                break;
            case 6:
                System.out.println("及格");
                break;
            case 7:
            case 8:
                System.out.println("中等");
                break;
            case 9:
                System.out.println("良好");
                break;
            case 10:
                System.out.println("优秀");
                break;
        }
    }
}